home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!russell
- From: russell@news.mdli.com (Russell Blackadar)
- Newsgroups: comp.lang.c++
- Subject: Re: class declaration
- Date: 27 Jan 1996 02:42:09 GMT
- Organization: HoloNet National Internet Access System: 510-704-1058/modem
- Message-ID: <4ec3e1$ctb@colossus.holonet.net>
- References: <4dphp6$1bp@noc2.drexel.edu> <4drakm$hnu@grid.direct.ca> <ALUN.CHAMPION.96Jan22114418@g7240065.bridge.bst.bls.com> <4e6ngs$f2d@classic.iinet.com.au>
- NNTP-Posting-Host: jubal.mdli.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- John A Ng (ng@mitswa.com.au) wrote:
- : >: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman) wrote:
- ...
-
- : >: void foo::bar (int baz)
- : >: {
- : >: // do someFoobar
- : >: ++baz;
- : >: }
- ...
-
- : There is absolutely nothing wrong with the above program -- not even
- : style.
-
- I don't know if I'd go as far as to say that! The ++baz; statement
- has no useful function, and it's never good style to write useless
- statements. (Note: baz is a temporary, since you called by value.)
- --
- Russell Blackadar, russell@mdli.com
-